package com.watchthelan.domain;

import junit.framework.TestCase;

public class ServerTests extends TestCase {
	private Server server;
	
	protected void setUp() throws Exception {
		server = new Server();
	}
	
	public void testSetAndGetName() {
		String testName = "HTTP on www";
		assertNull(server.getName());
		server.setName(testName);
		assertEquals(server.getName(), testName);
	}
	
	public void testSetAndGetPort() {
		int testPort = 80;
		server.setPort(testPort);
		assertEquals(server.getPort(), testPort);	
	}
	
	public void testSetAndGetStatus() {
		int testStatus = 1;
		assertEquals(server.getStatus(), -1);
		server.setStatus(testStatus);
		assertEquals(server.getStatus(), testStatus);
	}
}
